package com.aaa.controller;


import com.aaa.entity.Playlist;
import com.aaa.entity.Singer;
import com.aaa.service.PlaylistService;
import com.aaa.service.SingerService;
import com.aaa.util.SingerPageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.UUID;

@RestController
@RequestMapping("/playlist")
public class PlaylistController {
    @Autowired
    private PlaylistService playlistService;

    @RequestMapping("/Select")
    public SingerPageInfo<Playlist> Select(Integer pagesize, Integer currentpage, String inputm){
        SingerPageInfo<Playlist> select = playlistService.listAll(pagesize,currentpage,inputm);
        return select;
    }
    @RequestMapping("/Update")
    public Integer Update(Playlist playlist){
        Integer update = playlistService.update(playlist);
        return update;
    }



}
